package com.lenl.datastruct.recursion;

/**
 * @author Lenl
 * @version v1.0
 * @create 2022-04-30 11:00
 * @description 测试递归
 */
public class RecursionTest {
    public static void main(String[] args) {
        test(5);
    }

    public  static void test(int n){
        if(n>2){
            test(n-1);
        }
        System.out.println("n="+n);
    }
}
